package com.xyzwps.lib.ap;

import javax.lang.model.element.VariableElement;

public record FieldInfo(VariableElement element, String name, Modifiers modifiers) {

    public static FieldInfo of(VariableElement element) {
        var name = element.getSimpleName().toString();
        return new FieldInfo(element, name, Modifiers.of(element.getModifiers()));
    }
}
